home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13825 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 68 75 | 72 73 6c 65 79 2e 69 62 |Path: hu|rsley.ib|
|00000010| 6d 2e 63 6f 6d 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |m.com!ne|ws.From:|
|00000020| 20 4d 61 78 20 57 61 74 | 65 72 6d 61 6e 20 3c 64 | Max Wat|erman <d|
|00000030| 77 61 74 65 72 40 77 69 | 67 68 74 2e 68 75 72 73 |water@wi|ght.hurs|
|00000040| 6c 65 79 2e 69 62 6d 2e | 63 6f 6d 3e 0a 4e 65 77 |ley.ibm.|com>.New|
|00000050| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 6c 61 |sgroups:| comp.la|
|00000060| 6e 67 2e 63 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |ng.c.Sub|ject: Re|
|00000070| 3a 20 48 65 6c 70 20 74 | 72 61 70 70 69 6e 67 20 |: Help t|rapping |
|00000080| 73 74 64 6f 75 74 20 66 | 72 6f 6d 20 55 6e 69 78 |stdout f|rom Unix|
|00000090| 20 73 79 73 74 65 6d 28 | 29 20 63 61 6c 6c 0a 44 | system(|) call.D|
|000000a0| 61 74 65 3a 20 57 65 64 | 2c 20 31 30 20 41 70 72 |ate: Wed|, 10 Apr|
|000000b0| 20 31 39 39 36 20 31 34 | 3a 35 39 3a 34 39 20 2b | 1996 14|:59:49 +|
|000000c0| 30 31 30 30 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0100.Org|anizatio|
|000000d0| 6e 3a 20 49 42 4d 20 55 | 4b 20 4c 61 62 6f 72 61 |n: IBM U|K Labora|
|000000e0| 74 6f 72 69 65 73 20 4c | 74 64 2e 0a 4d 65 73 73 |tories L|td..Mess|
|000000f0| 61 67 65 2d 49 44 3a 20 | 3c 33 31 36 42 42 45 44 |age-ID: |<316BBED|
|00000100| 35 2e 36 32 30 31 40 77 | 69 67 68 74 2e 68 75 72 |5.6201@w|ight.hur|
|00000110| 73 6c 65 79 2e 69 62 6d | 2e 63 6f 6d 3e 0a 52 65 |sley.ibm|.com>.Re|
|00000120| 66 65 72 65 6e 63 65 73 | 3a 20 3c 44 70 6e 47 73 |ferences|: <DpnGs|
|00000130| 44 2e 4d 6f 32 40 75 6c | 2e 69 65 3e 0a 52 65 70 |D.Mo2@ul|.ie>.Rep|
|00000140| 6c 79 2d 54 6f 3a 20 6d | 61 78 2d 6c 74 6f 6e 40 |ly-To: m|ax-lton@|
|00000150| 74 63 70 2e 63 6f 2e 75 | 6b 0a 4e 4e 54 50 2d 50 |tcp.co.u|k.NNTP-P|
|00000160| 6f 73 74 69 6e 67 2d 48 | 6f 73 74 3a 20 77 69 67 |osting-H|ost: wig|
|00000170| 68 74 2e 68 75 72 73 6c | 65 79 2e 69 62 6d 2e 63 |ht.hursl|ey.ibm.c|
|00000180| 6f 6d 0a 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |om.Mime-|Version:|
|00000190| 20 31 2e 30 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|000001a0| 65 3a 20 74 65 78 74 2f | 70 6c 61 69 6e 3b 20 63 |e: text/|plain; c|
|000001b0| 68 61 72 73 65 74 3d 75 | 73 2d 61 73 63 69 69 0a |harset=u|s-ascii.|
|000001c0| 43 6f 6e 74 65 6e 74 2d | 54 72 61 6e 73 66 65 72 |Content-|Transfer|
|000001d0| 2d 45 6e 63 6f 64 69 6e | 67 3a 20 37 62 69 74 0a |-Encodin|g: 7bit.|
|000001e0| 58 2d 4d 61 69 6c 65 72 | 3a 20 4d 6f 7a 69 6c 6c |X-Mailer|: Mozill|
|000001f0| 61 20 32 2e 30 31 20 28 | 58 31 31 3b 20 49 3b 20 |a 2.01 (|X11; I; |
|00000200| 41 49 58 20 32 29 0a 0a | 56 69 6e 63 65 6e 74 20 |AIX 2)..|Vincent |
|00000210| 57 61 6c 73 68 20 77 72 | 6f 74 65 3a 0a 3e 20 0a |Walsh wr|ote:.> .|
|00000220| 3e 20 48 69 20 41 6c 6c | 2c 0a 3e 20 49 20 68 61 |> Hi All|,.> I ha|
|00000230| 76 65 20 61 20 70 72 6f | 62 6c 65 6d 20 61 6e 64 |ve a pro|blem and|
|00000240| 20 77 6f 75 6c 64 20 61 | 70 70 72 65 63 69 61 74 | would a|ppreciat|
|00000250| 65 20 69 73 20 73 6f 6d | 65 6f 6e 65 20 63 6f 75 |e is som|eone cou|
|00000260| 6c 64 20 68 65 6c 70 20 | 6d 65 21 0a 3e 20 0a 3e |ld help |me!.> .>|
|00000270| 20 57 69 74 68 69 6e 20 | 61 20 43 20 70 72 6f 67 | Within |a C prog|
|00000280| 72 61 6d 20 49 20 63 61 | 6c 6c 20 61 6e 6f 74 68 |ram I ca|ll anoth|
|00000290| 65 72 20 43 20 70 72 6f | 67 72 61 6d 20 61 6e 64 |er C pro|gram and|
|000002a0| 20 49 20 77 61 6e 74 20 | 74 6f 20 74 72 61 70 20 | I want |to trap |
|000002b0| 74 68 65 20 6f 75 74 70 | 75 74 0a 3e 20 6f 66 20 |the outp|ut.> of |
|000002c0| 74 68 65 20 73 65 63 6f | 6e 64 20 43 20 70 72 6f |the seco|nd C pro|
|000002d0| 67 72 61 6d 20 69 6e 74 | 6f 20 61 20 62 75 66 66 |gram int|o a buff|
|000002e0| 65 72 2e 20 49 20 74 72 | 69 65 64 20 75 73 69 6e |er. I tr|ied usin|
|000002f0| 67 20 66 6f 70 65 6e 2c | 20 65 74 63 2e 2e 20 61 |g fopen,| etc.. a|
|00000300| 6e 64 0a 3e 20 73 79 73 | 74 65 6d 28 29 20 63 61 |nd.> sys|tem() ca|
|00000310| 6c 6c 73 2c 20 62 75 74 | 20 74 6f 20 6e 6f 20 61 |lls, but| to no a|
|00000320| 76 61 69 6c 2e 0a 3e 20 | 49 20 61 6c 73 6f 20 74 |vail..> |I also t|
|00000330| 72 69 65 64 20 75 73 69 | 6e 67 20 70 6f 70 65 6e |ried usi|ng popen|
|00000340| 20 74 6f 20 63 61 6c 6c | 20 74 68 65 20 73 65 63 | to call| the sec|
|00000350| 6f 6e 64 20 43 20 70 72 | 6f 67 72 61 6d 20 61 6e |ond C pr|ogram an|
|00000360| 64 20 74 68 69 73 20 74 | 72 61 70 70 65 64 20 74 |d this t|rapped t|
|00000370| 68 65 0a 3e 20 73 74 64 | 6f 75 74 20 69 6e 74 6f |he.> std|out into|
|00000380| 20 61 20 62 75 66 66 65 | 72 2c 20 62 75 74 20 6e | a buffe|r, but n|
|00000390| 6f 74 20 73 74 64 65 72 | 72 2e 20 57 68 69 63 68 |ot stder|r. Which|
|000003a0| 20 6d 65 61 6e 73 20 6d | 79 20 62 75 66 66 65 72 | means m|y buffer|
|000003b0| 20 77 69 6c 6c 20 74 65 | 6c 6c 20 6d 65 0a 3e 20 | will te|ll me.> |
|000003c0| 74 68 65 20 72 65 73 75 | 6c 74 73 20 69 66 20 74 |the resu|lts if t|
|000003d0| 68 65 20 73 65 63 6f 6e | 64 20 70 72 6f 67 72 61 |he secon|d progra|
|000003e0| 6d 20 77 6f 72 6b 73 2c | 20 62 75 74 20 6d 79 20 |m works,| but my |
|000003f0| 62 75 66 66 65 72 20 69 | 73 20 65 6d 70 74 79 20 |buffer i|s empty |
|00000400| 69 66 20 74 68 65 0a 3e | 20 73 65 63 6f 6e 64 20 |if the.>| second |
|00000410| 70 72 6f 67 72 61 6d 20 | 6f 75 74 70 75 74 73 20 |program |outputs |
|00000420| 74 6f 20 73 74 64 65 72 | 72 21 21 0a 3e 20 0a 0a |to stder|r!!.> ..|
|00000430| 49 20 74 72 69 65 64 20 | 61 20 71 75 69 63 6b 20 |I tried |a quick |
|00000440| 70 72 6f 67 2e 20 50 65 | 72 72 6f 72 28 29 20 69 |prog. Pe|rror() i|
|00000450| 73 20 64 65 66 69 6e 69 | 74 65 6c 79 20 74 68 65 |s defini|tely the|
|00000460| 20 77 61 79 20 74 6f 20 | 67 6f 2e 20 49 74 20 72 | way to |go. It r|
|00000470| 75 6e 73 0a 69 74 73 20 | 70 72 6f 67 73 20 69 6e |uns.its |progs in|
|00000480| 20 61 20 62 73 68 2c 20 | 77 68 69 63 68 20 49 20 | a bsh, |which I |
|00000490| 61 73 73 75 6d 65 20 69 | 73 20 74 68 65 20 73 61 |assume i|s the sa|
|000004a0| 6d 65 20 61 73 20 73 68 | 2e 20 55 6e 64 65 73 74 |me as sh|. Undest|
|000004b0| 61 6e 64 69 6e 67 20 74 | 68 69 73 2c 0a 49 20 64 |anding t|his,.I d|
|000004c0| 69 64 20 74 68 65 20 63 | 61 6c 6c 20 3a 0a 0a 70 |id the c|all :..p|
|000004d0| 65 72 72 6f 72 28 20 22 | 66 69 6e 64 20 2f 74 6d |error( "|find /tm|
|000004e0| 70 20 2d 70 72 69 6e 74 | 20 32 3e 31 22 2c 20 22 |p -print| 2>1", "|
|000004f0| 72 22 20 29 0a 0a 62 75 | 74 20 74 68 69 73 20 64 |r" )..bu|t this d|
|00000500| 69 64 6e 27 74 20 77 6f | 72 6b 20 65 69 74 68 65 |idn't wo|rk eithe|
|00000510| 72 2e 20 53 6f 20 49 27 | 6d 20 6e 6f 20 68 65 6c |r. So I'|m no hel|
|00000520| 70 20 72 65 61 6c 6c 79 | 2e 0a 0a 4a 75 73 74 20 |p really|...Just |
|00000530| 70 6f 73 74 69 6e 67 20 | 74 68 69 73 20 74 6f 20 |posting |this to |
|00000540| 72 65 67 69 73 74 65 72 | 20 69 6e 74 65 72 65 73 |register| interes|
|00000550| 74 20 69 6e 20 61 20 72 | 65 73 70 6f 6e 73 65 2e |t in a r|esponse.|
|00000560| 0a 0a 4d 61 78 2e 0a 0a | 2d 2d 20 0a 20 20 20 20 |..Max...|-- . |
|00000570| 5f 5f 5f 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |___ | |
|00000580| 20 20 20 20 20 20 20 20 | 20 6d 61 69 6c 74 6f 3a | | mailto:|
|00000590| 6d 61 78 2d 6c 74 6f 6e | 40 74 63 70 2e 63 6f 2e |max-lton|@tcp.co.|
|000005a0| 75 6b 20 0a 20 20 2f 20 | 20 2f 20 20 2f 20 20 5f |uk . / | / / _|
|000005b0| 20 20 20 20 20 20 20 2f | 20 20 20 20 20 2f 20 20 | /| / |
|000005c0| 5f 20 20 5f 5f 20 5f 5f | 20 20 20 5f 20 20 20 5f |_ __ __| _ _|
|000005d0| 5f 20 20 20 5f 0a 20 2f | 20 20 2f 20 20 2f 20 2f |_ _. /| / / /|
|000005e0| 5f 2f 20 7c 2f 20 20 2f | 20 20 2f 20 20 2f 20 2f |_/ |/ /| / / /|
|000005f0| 5f 2f 20 20 2f 20 20 2f | 5f 20 20 20 2f 5f 2f 20 |_/ / /|_ /_/ |
|00000600| 2f 20 2f 20 2f 20 2f 5f | 2f 20 2f 7c 20 2f 0a 2f |/ / / /_|/ /| /./|
|00000610| 20 20 2f 20 20 2f 20 2f | 20 20 2f 20 2f 7c 20 20 | / / /| / /| |
|00000620| 2f 5f 2f 5f 2f 20 2f 20 | 20 2f 20 20 2f 20 20 2f |/_/_/ / | / / /|
|00000630| 5f 20 20 2f 20 20 7c 20 | 20 2f 20 2f 20 2f 20 2f |_ / | | / / / /|
|00000640| 20 20 2f 20 2f 20 7c 2f | 0a | / / |/|. |
+--------+-------------------------+-------------------------+--------+--------+